<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../Another/Style/jquery-ui.css"/>
<script type="text/javascript" src="../Another/JQuery/jquery1.9.2.min.js"></script>
<script type="text/javascript" src="../Another/JQuery/jquery_ui.js"></script>
<link rel="stylesheet" type="text/css" href="../Another/Style/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="../Another/Style/bootstrap-responsive.css"/>
<script type="text/javascript" src="../Another/JQuery/bootstrap-transition.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-alert.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-modal.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-scrollspy.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-tab.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-tooltip.js"></script>
<script type="text/javascript" src="../Another/JQuery/bootstrap-popover.js"></script>
<script type="text/javascript" src="../Another/JQuery/jquery.validate.js"></script>
<script type="text/javascript">
	  $(document).ready(function(){
			$('input').hover(function()
			{
			$(this).popover('show')
		});
			$("#registerHere").validate({
				rules:{
					Email:{
							required:true,
							email: true
						},
					captcha:{
						required:true
					},
				},
				messages:{
		
					Email:{
						required:"Nhập địa chỉ email của bạn",
						email:"Nhập địa chỉ email hợp lệ"
					},
					captcha:{
						required:"Mã xác minh không được để trống",
						//equalTo:"Mã xác minh chưa đúng!"
					},
					
				},
				errorClass: "help-inline",
				errorElement: "span",
				highlight:function(element, errorClass, validClass) {
					$(element).parents('.control-group').addClass('error');
				},
				unhighlight: function(element, errorClass, validClass) {
					$(element).parents('.control-group').removeClass('error');
					$(element).parents('.control-group').addClass('success');
				}
			});
		});
</script>
	<form class="form-horizontal" id="registerHere" method='post' action="../MyControl/guilaimatkhau.php">
	  <fieldset>
	    <legend>LẤY LẠI MẬT KHẨU</legend>
	 <div class="control-group">
		<label class="control-label" for="input01">Email</label>
	      <div class="controls">
	        <input type="text" class="input-xlarge" id="Email" name="Email" rel="popover" />
	      </div>
	</div>
    <div class="control-group">
		<label class="control-label" for="input01">Mã Xác Minh</label>
	      <div class="controls">
	        <input type="text" class="input-xlarge" id="captcha" name="captcha" rel="popover"/>&nbsp;<img src="../MyControl/captcha_code.php"/>
	       
	      </div>
	</div>
   
	<div class="control-group">
	      <div class="controls">
	       <button type="submit" class="btn btn-success" rel="tooltip" title="first tooltip" name="GuiMatKhau">Gửi mật khẩu</button>
	      </div>
			
	</div>
	</fieldset>
	</form>
  <?php
	if(isset($_REQUEST['error']))
	{		
			echo"<font color='#FF0000' size='+2'>"."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			Email này không tồn tại!"."</font>";
	}
	if(isset($_REQUEST['errors']))
	{		
			echo"<font color='#FF0000' size='+2'>"."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			Nhập mã xác nhận chưa chính xác!"."</font>";
	}
	if(isset($_REQUEST['errorss']))
	{		
			echo"<font color='#FF0000' size='+2'>"."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			Email không có thực!(Send email not success!)"."</font>";
	}
?>

